define(['app'], function(app)
{
    app.directive('appColor',
    [
        function()
        {
            return function(scope, $element, attrs)
            {
                $element.css({'color': attrs.appColor});
            }
        }
    ]);
    app.directive('hyp', function() {
        return {
            restrict: 'E',
            template: '<div>Hi hyp, <span ng-transclude></span></div>',
            transclude: true
        };
    });
    app.directive('sumperman',function(){
        return {
            restrict: 'A',
            link: function(){
                console.log("我是超人，显然我会飞！");
            }
        }
    });
    app.directive('sumperman',function(){
        return {
            restrict: 'C',
            link: function(){
                console.log("我也是超人，必然我也会飞！");
            }
        }
    });
    app.directive('sumperwoman',function(){
        return {
            restrict: 'M',
            link: function(){
                console.log("我不是超人，当然我不会飞！");
            }
        }
    });
});
